<%@ page language="java" import="java.util.*,entity.*,dao.*,dao.impl.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
	TopicDao topicDao = new TopicDaoImpl();//得到主题Dao的实例
	BoardDao boardDao = new BoardDaoImpl();//得到板块Dao的实例
	
	int boardId = Integer.parseInt(request.getParameter("boardId"));//取得板块ID
	int topicId = Integer.parseInt(request.getParameter("topicId"));//取得主题ID
 %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
	<base href="<%=basePath%>">
	<title>回复页面</title>
	<style type="text/css">
		*{
			padding: 0;
			margin: 0;
		}
		#apDiv1 {
			position: absolute;
			left: 1px;
			top: 1px;
			width: 99.5%;
			height: 50px;
			z-index: 1;
		}
		#apDiv2 {
			position: absolute;
			left: 1px;
			top: 51px;
			width: 99.5%;
			height: 30px;
			z-index: 2;
			background-color: #e0f0f9;
		}
		#apDiv3{
			position: absolute;
			top:100px;
			left: 360px;
		}
		.style1{
			font-family: "黑体";
			font-weight: bold;
			font-size: 40px;
			color: #3399cc;
		}
		.style2{
			color: black;
			font-size: 20px;
		}
		textarea{
			width: 500px;
			height: 200px;
			font-size: 17px;
			background-color: #F5F5F5;
			overflow: auto;/*若输入文本超出文本域高宽，自动显示滚动条*/
			word-break: break-all;/*word-break属性规定自动换行的处理方法。通过使用 word-break 属性，可以让浏览器实现在任意位置的换行。normal	使用浏览器默认的换行规则。break-all	允许在单词内换行。keep-all	只能在半角空格或连字符处换行。*/
			border: 1.5px solid black;
			border-radius: 20px;
			text-indent: 2em;
			outline: none;/*消除边框轮廓线*/
			resize: none;/*不能用鼠标拖动来调整文本域的大小，文本域高宽固定。以下是resize属性的的各个取值:none：用户不能操纵机制调节元素的尺寸；both：用户可以调节元素的宽度和高度；horizontal：用户可以调节元素的宽度；vertical：让用户可以调节元素的高度；inherit：默认继承。*/
		}
		textarea:focus {
			outline:none;
			border: 1.5px solid #1E90FF;
		}
		td{
			text-align: right;
		}
	</style>
</head>
<body>
	<div id="apDiv1">
		<div align="center" class="style1">校园BBS系统</div>
	</div>
	<div class="style2" id="apDiv2">
		&nbsp;您尚未&nbsp;&nbsp;<a href="login.html" target="_blank">登录</a>&nbsp;&nbsp;|
		&nbsp;&nbsp;<a href="reg.html" target="_blank">注册</a>
	</div>
	<center>
		<div id="apDiv3">
			<form name="replyform" action="manage/doReply.jsp" method="post">
				<input type="hidden" name="topicId" value="<%=topicId %>" />
				<input type="hidden" name="boardId" value="<%=boardId %>" />
				<table border="0" cellpadding="20px" cellspacing="20px">
					<tr>
						<td valign="center" style="font-size: 20px;">标题</td>
						<td>
							<input name = "title" type = "text" id = "title" required="required" style="height:28px;width:500px;font-size: 16px;border: 1.5px solid black;" maxlength="50"/>
						</td>
					</tr>
					<tr>
						<td style="font-size: 20px;">内容</td>
						<td>
							<textarea placeholder="来说点什么吧......" name="content" id="content" required="required" maxlength="1000"></textarea>
						</td>
					</tr>
					<tr>
						<td colspan="2" style="text-align: center">
							<input type="submit" name="reply" id="reply" value="回帖" style="height:25px;width:50px;"/>
						</td>
					</tr>
				</table>
			</form>
		</div>
	</center>
</body>
</html>